import request from './request.js'

const home = {
	
	getGoodsList(data) {
		return request.get('/api/v1/goods/getGoodsList', {
			data
		})
	},
	editGoodsInfo(data) {
		return request.post('/api/v1/goods/editGoodsInfo', data)
	},
	//补货订单创建
	supplementGoods(data) {
		return request.post('/api/v1/Inventory/supplementGoods', data)
	},
	// 订单列表采购
	orderList(data) {
		return request.get('/api/v1/Inventory/orderList', {
			data
		})
	},
	// 物流查询
	checkShipping(order_no) {
		return request.get(`/api/v1/Inventory/checkShipping?order_no=${order_no}`)
	},
	//订单支付
	orderPay(data){
		return request.post('/api/v1/Inventory/orderPay', data)
	},
	//取消订单
	cancelOrder(order_no){
		return request.get(`/api/v1/Inventory/cancelOrder?order_no=${order_no}`)
	},
	//订单详情
	orderDetail(order_no){
		return request.get(`/api/v1/Inventory/orderDetail?order_no=${order_no}`)
	},
	//确认收货
	receiving(data) {
		return request.post('/api/v1/Inventory/receiving', data)
	}
}
export default home
